﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using zhangmenren.Db;
using zhangmenren.Models;
using zhangmenren.ViewModel;

namespace zhangmenren.IService
{
    public interface IProductService : IDependency
    {
        Task<int> Add(ProductsEntity entity);

        Task<IEnumerable<ProductModel>> Selelct(int count=0);

        Task<int> Del(int id);

        Task<IEnumerable<ProductModel>> FindByUserId(int userId);
    }
}
